<h1>
	Rezerwacja
	<span class="breadcrumbs">
		&lt; <a href="<?= $ro->gen('reservation.browse', array('hall' => $t['reservation']['hallId'])) ?>"><?= e($t['reservation']['Hall']['name']) ?></a>
		&lt; <a href="<?= $ro->gen('reservation.halls') ?>">Wybór sali</a>
	</span>
</h1>

<div id="reservation-read">

<ul class="actions">
	<? foreach ($t['actions'] as $action): ?>
	<li>
		<a href="<?= $ro->gen($action['route'], array('hall' => $t['reservation']['hallId'], 'id' => $t['reservation']['id'])) ?>">
			<img src="<?= AgaviConfig::get('app.path') ?>/img/reservation_<?= $action['type'] ?>.png" alt="" />
			<?= $action['label'] ?>
		</a>
	</li>
	<? endforeach ?>
</ul>

<? if (count($t['overlapping'])): ?>
<div id="overlapping">
	<dl>
		<dt>Rezerwacje w tym samym terminie</dt>
		<? foreach ($t['overlapping'] as $overlapping): ?>
		<dd>
			<span class="status-<?= $overlapping->status ?>">&nbsp;</span>
			<a href="<?= $ro->gen('reservation.read', array('hall' => $overlapping['hallId'], 'id' => $overlapping['id'])) ?>">
			Od <?= $tm->_d((int)$overlapping['fromTime'], 'short_date') ?>
			do <?= $tm->_d((int)$overlapping['toTime'], 'short_date') ?>
			przez <?= e($overlapping['User']['name']) ?>
			</a>
		</dd>
		<? endforeach ?>
	</dl>
</div>
<? endif ?>

<dl>
	<dt>ID</dt>
	<dd><?= $t['reservation']['id'] ?></dd>
	<dt>Status</dt>
	<dd><span class="status-<?= $t['reservation']['status'] ?>"><?= Reservation::mapStatusToText($t['reservation']['status']) ?></span></dd>
	<dt>Sala</dt>
	<dd>
		<?= e($t['reservation']['Hall']['name']) ?><br/>
		<?= nl2br(e($t['reservation']['Hall']['address'])) ?>
	</dd>
	<dt>Termin</dt>
	<dd>
		<?= $tm->_d((int)$t['reservation']['fromTime'], 'medium_date') ?> od
		<?= $tm->_d((int)$t['reservation']['fromTime'], 'short_date') ?> do
		<?= $tm->_d((int)$t['reservation']['toTime'], 'short_date') ?>
	</dd>
	<dt>Osoba odpowiedzialna</dt>
	<dd><?= $t['reservation']['User']['name'] ?></dd>
	<dd><?= $t['reservation']['User']['email'] ?></dd>
	<dd><?= $t['reservation']['User']['phone'] ?></dd>
	<dt>Prowadzący zajęcia</dt>
	<dd><?= e($t['reservation']['lecturer']) ?></dd>
	<dt>Wydział</dt>
	<dd><?= e($t['reservation']['department']) ?></dd>
	<dt>Kierunek</dt>
	<dd><?= e($t['reservation']['branch']) ?></dd>
	<dt>Rok studiów</dt>
	<dd><?= e($t['reservation']['year']) ?></dd>
	<dt>Przedmiot</dt>
	<dd><?= e($t['reservation']['subject']) ?></dd>
	<dt>Cel</dt>
	<dd><?= nl2br(e($t['reservation']['description'])) ?></dd>
</dl>

</div>